package com.atguigu.common.exception;

/**
 * @author sourire
 * @version 1.0
 * @date 2020/5/27 16:00
 */
public enum BizCodeNum {
    UNKNOW_EXCEPTION(10000,"未知异常"),
    VALID_EXCEPTION(10001,"参数校验异常");

    private int code;
    private String msg;

    BizCodeNum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
